package com.limingru.newbee.service;

import com.limingru.newbee.api.param.CartModifyCountParam;
import com.limingru.newbee.api.param.CartSaveGoodsParam;
import com.limingru.newbee.api.vo.CartItemVO;
import com.limingru.newbee.entity.CartItem;

import java.util.List;

public interface CartService {
    String saveGoodsInCart(CartSaveGoodsParam cartSaveGoodsParam, Long userId);

    List<CartItemVO> getCartList(Long userId);

    String modifyCount(CartModifyCountParam cartModifyCountParam, Long userId);

    CartItem findCartItemById(Long cartItemId);

    String removeCartItem(CartItem cartItem);

    List<CartItemVO> getCartItemsForSettle(List<Long> cartItemIds, Long userId);
}
